package com.bacel.nb.product.core.service.impl;

import com.bacel.nb.product.core.dao.Dao;
import com.bacel.nb.product.core.dao.ISysmoduleDao;
import com.bacel.nb.product.core.dao.ISysrolerightDao;
import com.bacel.nb.product.core.domain.Sysmodule;
import com.bacel.nb.product.core.domain.Sysuser;
import com.bacel.nb.product.core.service.ISysmoduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Bacel on 2017/4/4.
 */
@Service
public class SysmoduleService extends BaseServiceImpl<Sysmodule> implements ISysmoduleService {

    @Autowired
    private ISysmoduleDao moduleDao;
    @Autowired
    private ISysrolerightDao sysrolerightDao;

    @Override
    protected Dao getDao() {
        return moduleDao;
    }

    @Override
    public List<Sysmodule> getusermenudata(Sysuser user) {
        return moduleDao.getusermenudata(user);
    }
}
